const {createProxyMiddleware} = require('http-proxy-middleware')

module.exports = function(app:any) {
    app.use('/dev-api', createProxyMiddleware({
        target: 'http://localhost:3000',
        changeOrigin: true,
        pathRewrite: {
        '^/dev-api': ''
        }
    }))
}